<template>
  <div id="centerLeft1">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span>
          <icon name="chart-pie" class="text-icon"></icon>
        </span>
        <div class="d-flex">
          <span class="fs-xl text mx-2" style="font-size: 16px;">汽车词云</span>
          <dv-decoration-1 class="dv-dec-1" />
        </div>
      </div>
      <div class="d-flex jc-center">
          <img :src="imgUrl" alt=""
          style="width: 300px; height: 150px; margin-top: 80px;">
      </div>
    </div>
  </div>
</template>

<script>

export default {
  data(){
    return {
      imgUrl: "/largescreen/images/worldcloud_car.png",
    }
  },
  mounted () {
    this.updateImg();
  },
  methods:{
    updateImg(){
      //拼接时间参数，实现图片更新是img更新
      this.imgUrl = "/largescreen/images/worldcloud_car.png?t=" + new Date().getTime();
    }
  }

};
</script>

<style lang="scss" scoped>
#centerLeft1 {
  $box-width: 300px;
  $box-height: 410px;
  padding: 16px;
  height: $box-height;
  min-width: $box-width;
  border-radius: 5px;
  .bg-color-black {
    height: $box-height - 30px;
    border-radius: 10px;
  }
  .text {
    color: #c3cbde;
  }
  .dv-dec-1 {
    position: relative;
    width: 100px;
    height: 20px;
    top: -3px;
  }
  .chart-box {
    margin-top: 16px;
    width: 170px;
    height: 170px;
    .active-ring-name {
      padding-top: 10px;
    }
  }
}
</style>